<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D 加载动画案例</title>
</head>
<style>
*{
    margin: 0;
    padding: 0;
}
.container{
    width: 100px;
    height: 100px;
    margin: 100px auto;
    position: relative;
}
.container .ele-1,.container .ele-2,.container .ele-3{
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%,0);
    opacity: 0.7;
    background-color: blue;
    transition: all 1s;
    transform-origin: 50% calc(100px / 2);
}
.container .ele-1{
    width: 20px;
    height: 20px;
}
.container .ele-2{
    width: 18px;
    height: 18px;
    transition-delay:  0.1s;
}
.container .ele-3{
    width: 16px;
    height: 16px;
    transition-delay:  0.2s;
}
.container:hover .child{
    transform: translate(-50%,0) rotate(1turn);
}
</style>
<body>
    <div class="container">
        <div class="child ele-1"></div>
        <div class="child ele-2"></div>
        <div class="child ele-3"></div>
    </div>
</body>
</html>